﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebPartPages;
using IntelligentDecisioning.SharePoint.Logging;

namespace IntelligentDecisioning.SharePoint.Actions 
{
    /// <summary>
    /// Defines a provisioning action to be executes on first load of a page in a sharepoint site
    /// </summary>
    public interface IPageAction
    {
        /// <summary>
        /// Perfrom the provisioning action
        /// </summary>
        /// <param name="page"></param>
        /// <param name="currentWeb"></param>
        /// <param name="currentSite"></param>
        /// <param name="wpm"></param>
        void Provision(SPFile page, SPWeb currentWeb, SPSite currentSite, SPLimitedWebPartManager wpm, ILog installationLog);

    }
}
